import 'package:flutter/material.dart';
import 'package:flutter_mmvm_provider/view/joke_view.dart';
import 'package:flutter_mmvm_provider/viewmodel/joke_view_model.dart';
import 'package:provider/provider.dart';

void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
        create: (context)=>JokeViewModel(),
        child: MaterialApp(
            home: JokeView(),
      ),
    );
  }
}


